package com.suyin.ximoon.plugin.mybatis;

/**
 * 升序/降序
 * 
 * @author guo
 * 
 */
public class OrderBy {

	public enum OrderByType {

		ASC("asc"), DESC("desc");

		private String name;

		private OrderByType(String name) {
			this.name = name;
		}

		private OrderByType() {
		}

		public String getName() {
			return this.name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}

	/**
	 * 属性、字段
	 */
	private String column;

	/**
	 * 排序类型
	 */
	private OrderByType type;

	

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public OrderByType getType() {
		return type;
	}

	public void setType(OrderByType type) {
		this.type = type;
	}

	OrderBy() {

	}

	public OrderBy(String column, OrderByType orderType) {
		this.type = orderType;
		this.column = column;
	}
}
